body {
    max-width: 540px;
    margin: 0 auto;
}

* {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 0 none;
    outline: none;
}

.main_viewport {
    background-color: #f4f4f4;
    padding-top: 80px;


    .top_search {
        span {
            font-size: 18px;
            position: absolute;
            left: 13px;
            top: 21px;
        }

        padding: 15px 10px;
        box-sizing: border-box;
        background-color: white;
        display: flex;
        width: 100%;
        top: 0;
        position: fixed;
        max-width: 540px;

        left: 50%;
        transform: translate(-50%);

        input {
            // 常规做法
            // width: 100%;
            // height: 30px;
            // border: 1px solid blue;
            // border-radius: 15px;
            // padding-left: 20px;
            // box-sizing: border-box;
            flex: 1;
            height: 30px;
            border: 1px solid blue;
            border-radius: 15px;
            padding-left: 20px;
        }

    }

    .content {
        height: 184px;
        padding: 0 10px;
        box-sizing: border-box;
        display: flex;
        // background-color: white;

        ul {
            flex: 1;
            background-color: pink;
            border-right: 2px solid #fff;

            li {
                display: flex;
                justify-content: center;
                flex-direction: column;
                align-items: center;
                width: 100%;
                height: 58px;



                a {

                    img {
                        width: 28px;
                        height: 28px;

                        display: block;
                        margin: 0 auto;

                    }

                }
            }

            &:first-child {
                border-radius: 10px 0px 0px 10px;
                background-color: #fff5f1;

                li:first-child {
                    background: linear-gradient(180deg, #FA5956 0%, #FB8650 100%);

                    border-radius: 10px 0px 0px 0px;

                    p {
                        color: #fff;
                    }
                }
            }

            &:nth-child(2) {
                background-color: #eff9ff;

                li:first-child {
                    background: linear-gradient(180deg, #3C83FA 0%, #50B2FA 100%);

                    p {
                        color: #fff;
                    }

                }



            }

            &:nth-child(3) {
                background-color: #f2f5ff;

                li:first-child {

                    background: linear-gradient(0deg, #66A4FF 0%, #5E80FF 100%);

                    p {
                        color: #fff;
                    }

                }



            }

            &:nth-child(4) {

                background-color: #ecfcf8;

                li:first-child {


                    background: linear-gradient(180deg, #2FC3B6 0%, #52D9B3 100%);

                    p {
                        color: #fff;
                    }

                }



            }

            &:last-child {
                background-color: #fff9f2;
                border-radius: 0px 10px 10px 0px;

                li:first-child {

                    background: linear-gradient(0deg, #FFA846 0%, #FF8939 99%);

                    p {
                        color: #fff;
                    }

                    border-radius: 0px 10px 0px 0px;

                }

            }






        }
    }
}

.top_Box {
    background-color: #f4f4f4;
    padding: 20px 2px;
    display: flex;

    .left_box {
        margin-right: 8px;
        margin: left;

        .title {
            display: flex;
            justify-content: space-between;
            flex-direction: row;
        }

        flex: 1;
        width: 50%;
        padding: 8px;
        border-radius: 8px;
        background: #fff;
        box-sizing: content-box;

        span {
            height: 16px;
            line-height: 16px;
            border-radius: 2px;
            font-size: 10px;
            background: #ffebe3;
            color: #ff4607;
            padding: 1px 4px;

        }

        img {

            width: 73px;
            height: 20px;
        }

        .middle {
            .text {
                margin-top: -22px;
                font-size: 12px;
                color: #fff;
                font-weight: 700;
                margin-left: 4px;
            }

            p {
                font-size: 16px;
                color: #f60;
                padding-right: 2px;
                font-weight: bold;
                box-sizing: border-box;
                margin-top: 8px;
            }

            img {
                width: 100%;
                height: 100px;
                border-radius: 10px;
                margin-top: 10px;
            }
        }
    }

    .right_box {

        flex: 1;
        width: 50%;
        padding: 8px;
        border-radius: 8px;
        background: #fff;
        box-sizing: content-box;

        .title {
            span {
                height: 16px;
                line-height: 16px;
                border-radius: 2px;
                font-size: 10px;
                background: #fdefd2;
                color: #ae6e15;
                padding: 1px 4px;
            }

            display: flex;
            justify-content: space-between;
            flex-direction: row;

            img {
                width: 73px;
                height: 20px;
            }
        }

        .middle {
            display: flex;
            justify-content: space-between;
            flex-direction: row;

            img {
                width: 48%;
                height: 100px;
                border-radius: 10px;
                margin-top: 10px;
            }
        }

        .bot_item {
            p {
                display: flex;
                justify-content: space-between;
                flex-direction: row;

            }

            span {
                font-size: 11px;
                color: #333;
                line-height: 1.1;
                margin-top: 8px;
                padding-right: 2px;
                box-sizing: border-box;
            }


        }

    }

}

.bot_box {
    img {
        width: 100%;
        height: 92px;
        border-radius: 10px;
        display: block;
        margin: 0 auto;
    }
}

.footer {
    height: 120px;
    padding-top: 12px;
    padding-bottom: 150px;

    .top {
        display: flex;
        justify-content: space-around;
        flex-direction: row;

        a {
            height: 30px;
            border: 1px solid #999;
            border-radius: 4px;
            min-width: 100px;
            text-align: center;
            line-height: 30px;
        }
    }

    .bot {
        text-align: center;
        font-size: 12px;
        line-height: 15px;
        margin-top: 13px;
        

        a {
            display: inline-block;
            width: 48%;

            &:first-child {
                padding-left: 80px;
                box-sizing: border-box;
                border-right: 1px solid #000;
            }

            &:nth-child(2) {
                padding-right: 100px;
                box-sizing: border-box;

            }

        }

        p {
            margin-top: 16px;
        }

        //      .line{
        //     float: left;
        //     width: 1px;
        //     height: 10px;
        //     margin-top:3px;
        //     margin-right: 10px;

        //     background-color: #504d4d;
        // }
        //  position: fixed;
        //       left: 50%;
        //       transform: translate(-50%);
        //       bottom: 0;
        //       width: 100%;
        //       min-width: 320px;
        //       max-width: 414px;
        //       height: 50px;

    }
}

.bot_nav {
       position: fixed;
          left: 50%;
          transform: translate(-50%);
          bottom: 0;
          width: 100%;
          height: 68px;
          background-color: white;
    display: flex;
    max-width: 540px;
        justify-content: space-around;
        flex-direction: row;
    .item {
        float: left;
        margin-left: 5px;
        margin-top: 10px;
        height: 46px;
        width: 36px;

        a {
            display: block;
            padding-top: 30px;
            text-align: center;
            position: relative;
            p{
                font-size: 10px;
            }
            }



            .bg {
            
                width: 30px;
                height: 32px;
                display: block;
                position: absolute;
                top: 0;
                left: 50%;
                margin-left: -11px;


            }

            
        
    }
    .one {
                .bg {
                    background: url(../img/tabbar.png) no-repeat -6px 2px;
                    background-size: 32px 150px;
                }
            }
     .two {
                .bg {
                    background: url(../img/tabbar.png) no-repeat -5px -27px;
                    background-size: 32px 150px;
                }
            }
     .three {
                .bg {
                    background: url(../img/tabbar.png) no-repeat -5px -57px;
                    background-size: 32px 150px;
                }
            }  
    .four {
                .bg {
                    background: url(../img/tabbar.png) no-repeat -5px -86px;
                    background-size: 32px 150px;
                }
            }     
            
}